<template>
  <div class="searchCont">
    <search-form>
      <template v-slot:searchBtn>
        <button class="search" @click="toJobPage">搜索</button>
      </template>
    </search-form>
    <search-hot></search-hot>
  </div>
</template>
<script>
// 引入搜索框组件
import SearchForm from '@/components/returnee/searchForm.vue'
// 引入热门职位
import SearchHot from '@/components/returnee/searchHot.vue'
export default {
  name: "returneesearch",
  components: {
    SearchForm,
    SearchHot
  },
  methods: {
    toJobPage(){
      this.$router.push({
        path: "position",
        query: {
          searchCondition: 1
        }
      });
    }
  },
}
</script>
<style lang="less">
  .searchCont{
    width: 100%;
    height: 152px;
    background-color: #f6f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    position: relative;
  }
</style>